package com.mdd.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("oms_leasing_scheme")
@ApiModel("租赁方案实体")
public class LeasingScheme extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;
    @ApiModelProperty(value = "租赁类型: 1、以租代购 2、纯租 3、月供 4、分期   服务类型配置，用于线上下单使用，每种租赁模式最多配置3个方案*")
    private Integer leaseType;
    @ApiModelProperty(value = "商品编码")
    private Long spuId;

    @ApiModelProperty(value = "月租")
    private BigDecimal monthlyRent;

    @ApiModelProperty(value = "周租")
    private BigDecimal weeklyRent;

    @ApiModelProperty(value = "日租")
    private BigDecimal dayRant;
}
